<?php 
	//if not a real page (nobody called us here, just user trying to hack
	if ((!isset($_SESSION['realpage']))
	 || ($_SESSION['realpage'] == false))
	 {
		require './hack.php';
		die(" ");
	 }

	// includes
	require_once "./class.GeneralServices.php";

	$error = true;

	
	// make sure to delete DB before running script
	//GeneralServices::getService()->register($username,$password,$firstname,$lastname,$birthday,$about,$email)
	$error = $error & GeneralServices::getService()->register("arg","arg","arg","argor","05/02/1970","I'm arg argor, pleased to meet with you","arg.argor@gmail.com");
	$error = $error & GeneralServices::getService()->register("nir","nir","nir","geffen","30/09/1985","New user to urban dynamics","geffen.nir@gmail.com");
	$error = $error & GeneralServices::getService()->register("yotam","yotam","yotam","margolin","30/09/1985","New user to urban dynamics","yotamargolin@gmail.com");
	$error = $error & GeneralServices::getService()->register("lena","lena","lena","lena","01/01/1980","New user to urban dynamics","lena@gmail.com");
	$error = $error & GeneralServices::getService()->register("daniel","daniel","daniel","daniel","01/01/1980","New user to urban dynamics","daniel@gmail.com");
	$error = $error & GeneralServices::getService()->register("evgeny","evgeny","evgeny","evgeny","01/01/1980","New user to urban dynamics","evgeny@gmail.com");
	$error = $error & GeneralServices::getService()->register("luda","luda","luda","luda","01/01/1980","New user to urban dynamics","luda@gmail.com");
	$error = $error & GeneralServices::getService()->register("alg","alg","alg","algor","07/06/1973","arg argor's sister!<script> alert('its me!');</script>","alg.algor@gmail.com");
	$error = $error & GeneralServices::getService()->register("alon","alon","alon","alon","01/01/1980","New user to urban dynamics","alon@gmail.com");
	$error = $error & GeneralServices::getService()->register("fadi","fadi","fadi","fadi","01/01/1980","New user to urban dynamics","fadi@gmail.com");
	$error = $error & GeneralServices::getService()->register("reem","reem","reem","reem","01/01/1980","New user to urban dynamics","reem@gmail.com");
	$error = $error & GeneralServices::getService()->register("sarit","sarit","sarit","sarit","01/01/1980","New user to urban dynamics","sarit@gmail.com");
	
	$error = $error & GeneralServices::getService()->friend(46,47);
	$error = $error & GeneralServices::getService()->friend(47,46);
	$error = $error & GeneralServices::getService()->friend(48,47);
	$error = $error & GeneralServices::getService()->friend(47,48);
	$error = $error & GeneralServices::getService()->friend(49,47);
	$error = $error & GeneralServices::getService()->friend(47,49);
	$error = $error & GeneralServices::getService()->friend(50,46);
	$error = $error & GeneralServices::getService()->friend(46,50);
	
	$error = $error & GeneralServices::getService()->createGroup("Special ppl support! <public>","supporting special ppl since 2012",1,46);
	$error = $error & GeneralServices::getService()->createGroup("Special ppl support! <private>","supporting special ppl since 2012",0,46);
	$error = $error & GeneralServices::getService()->createGroup("a filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("b filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("c filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("d filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("e filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("f filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("g filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("h filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("i filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("j filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("k filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("l filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("m filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("n filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("o filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("p filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("q filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("r filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("s filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("t filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("u filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("w filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("x filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("y filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("z filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("q filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("1 filler group","spam spam <script> alert('aa');</script>",1,47);
	$error = $error & GeneralServices::getService()->createGroup("2 filler group","spam spam <script> alert('aa');</script>",1,47);
	
	$error = $error & GeneralServices::getService()->sendMessage(46, 47, "Hi there!");
	$error = $error & GeneralServices::getService()->sendMessage(47, 46, "Hi yourself!");
	$error = $error & GeneralServices::getService()->sendMessage(46, 47, "How are you!");
	$error = $error & GeneralServices::getService()->sendMessage(47, 46, "fine thank you");
	$error = $error & GeneralServices::getService()->sendMessage(49, 50, "hello");
	$error = $error & GeneralServices::getService()->sendMessage(50, 49, "whats up?");
	$error = $error & GeneralServices::getService()->sendMessage(48, 46, "nir?");
	$error = $error & GeneralServices::getService()->sendMessage(46, 48, "hi yotam");
	$error = $error & GeneralServices::getService()->sendMessage(48, 46, "this site is nice..");
	$error = $error & GeneralServices::getService()->sendMessage(46, 48, "i wonder who made it? :)");
	
	
	$_SESSION= array();
	?>